package com.ck.ips.controller.program;

import com.ck.common.model.OperationResult;
import com.ck.core.annotation.LoginRequired;
import com.ck.ips.service.program.ProgramReducedLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author linqiang
 * @version v1.0
 * @Description 节目减播日志
 * @date 2019-05-07 17:24
 */
@LoginRequired
@RestController
@RequestMapping(value = "programReducedLog")
public class ProgramReducedLogController {

    @Autowired
    private ProgramReducedLogService programReducedLogService;

    /**
     * 分页列表
     *
     * @param deviceCode 终端序列号
     * @return OperationResult
     */
    @PostMapping(value = "/list")
    public OperationResult list(String deviceCode) {
        return programReducedLogService.list(deviceCode);
    }
}
